/**
 * @file    Expression classname is undefined on line 2, column 15 in Templates/Classes/Class.java.
 * @author  Haseeb Yousaf
 * @see     LICENSE (MIT style license file)
 * @version 1.0
 * @date    Nov 16, 2011 7:07:02 AM
 */
package carrello.model.association;

import carrello.model.entities.Attribute;
import carrello.model.entities.Product;
import java.io.Serializable;
import javax.persistence.CascadeType;
import javax.persistence.FetchType;
import javax.persistence.ManyToOne;

public class AttributeValuePK implements Serializable {
    private static final long serialVersionUID = 1L;

    @ManyToOne(cascade = CascadeType.ALL)
    private Attribute attribute;
    
    @ManyToOne(cascade = CascadeType.ALL,fetch = FetchType.LAZY)
    private Product product;
    
    public void setAttribute(Attribute attribute)
    {
        this.attribute = attribute;
    }
    
    public Attribute getAttribute()
    {
        return this.attribute;
    }
    
    public Product getProduct() 
    {
        return this.product;
    }
    
    public void setProduct(Product product)
    {
        this.product = product;
    }
}
